< previous page page_57 next page >

Page 57
12180-0057a.gif
Figure 2.7.
The sequence diagram shows the stimuli being sent from one object to another.
The main actor,the
Teller, initiates the events in the diagram and therefore
is the first object
displayed on the left.
Note
Rational Rose/Visual Basic, which is based on the Unified Modeling Language (UML), is available for a hefty price from Rational Corporation (
www.rational.com). At Microsoft's Web site (www.microsoft.com), Visual Modeler is available free to owners of Visual Basic Enterprise; however, it doesn't incorporate use cases, so you can't do sequence diagrams in it.
If you don't have the resources to purchase Rational Rose, do it by hand. There are some rumors that Visio's latest version offers features for the UML.

The Analysis Class Model
By now you've identified a collection class (BankAccounts) and several classes (Account, Customer, CheckingHistory). The initial class model will have these three classes as model items, as shown in Figure 2.8.
Notice that the collection class BankAccounts contains many Account class instances (or objects). The darkened black diamond indicates this relationship, which in Visual Basic would be represented as ByVal (as opposed to just ByRef). This relationship is named Has, which is another way of saying that BankAccounts contains many Account objects.

 
< previous page page_57 next page >

If you like this book, buy it!